unsigned int reverse_bits(unsigned int value) {
    //标准答案
    unsigned int t = 0;
    for(unsigned int i = 1; i != 0; i<<=1, value >>= 1) {
        t <<= 1;
        t = (value & 1) | t;
    }
    return t;
}

unsigned int my_reverse_bits(unsigned int value) {
    //我的答案
    unsigned int t = 0;
    for(int i = 0; i < sizeof(int) * 8; i++, value >>= 1) {
        t <<= 1;
        t = (value & 1) | t;
    }
    return t;
}

